//
//  CarCalculatorViewModel.h
//  CarUser
//
//  Created by ayi on 2019/1/24.
//  Copyright © 2019 王森林. All rights reserved.
//
typedef enum : NSUInteger {
    Current_PZLXDM_List_Type_Header = 1,
    Current_PZLXDM_List_Type_Instalment,
    Current_PZLXDM_List_Type_CarInfo,
    Current_PZLXDM_List_Type_Loans,
    Current_PZLXDM_List_Type_DownPayment,
    Current_PZLXDM_List_Type_NeedToSpend,
    Current_PZLXDM_List_Type_CommercialInsurance
} Current_PZLXDM_List_Type;




#import "TabviewViewModel.h"

#import "CarDetailInfoModel.h"

@class PZLXDMModel;
@interface CarCalculatorViewModel : TabviewViewModel

@property (nonatomic, strong) CarDetailInfoModel *carmodel;//依赖注入
//carmodel 里面的价格，拿出来用于做其他处理，若有carmodel，则为carmodel里面的价格，否则可监听，或由外界传入
@property (nonatomic, assign) double carMoney;

@property (nonatomic, strong) RACCommand *raccommand;
@property (nonatomic, assign) NSInteger currentType;//当前选中状态 1.全款 2.贷款


@property (nonatomic, strong, readonly) NSMutableArray<PZLXDMModel *> *PZLXDM_1;
@property (nonatomic, strong, readonly) NSMutableArray<PZLXDMModel *> *PZLXDM_2;

@property (nonatomic, strong, readonly) PZLXDMModel *PZLXDM_3;
@property (nonatomic, strong, readonly) PZLXDMModel *PZLXDM_4;
@property (nonatomic, strong, readonly) PZLXDMModel *PZLXDM_5;
@property (nonatomic, strong, readonly) PZLXDMModel *PZLXDM_6;

@property (nonatomic, strong, readonly) NSMutableArray<PZLXDMModel *> *PZLXDM_7;//第三者责任险

@property (nonatomic, strong, readonly) PZLXDMModel *PZLXDM_8;//基础保费
@property (nonatomic, strong, readonly) PZLXDMModel *PZLXDM_9;//全车盗抢险费率
@property (nonatomic, strong, readonly) NSMutableArray<PZLXDMModel *> *PZLXDM_10;//车身划痕险

@property (nonatomic, strong, readonly) NSMutableArray<PZLXDMModel *> *custom_glass_PZLXDM;//玻璃单独破碎险

//监听
@property (nonatomic, strong) NSString *headertext1;
@property (nonatomic, strong) NSMutableAttributedString *headertext2;
@property (nonatomic, strong) NSMutableAttributedString *yuegongtext;
@property (nonatomic, strong) NSMutableAttributedString *duohuafeitext;
@property (nonatomic, strong) NSMutableAttributedString *zonghuafeitext;
@property (nonatomic, strong) NSString *loanPeriodContenttext;
@property (nonatomic, strong) NSString *downPaymentContenttext;
@property (nonatomic, strong) NSString *needToSpendContenttext;
@property (nonatomic, strong) NSString *insuranceContenttext;

@property (nonatomic, strong) NSString *gouzhishuiContenttext;
@property (nonatomic, strong) NSString *chechuanshuiContenttext;
@property (nonatomic, strong) NSString *qiangxianContenttext;
@property (nonatomic, strong) NSString *linpaiContenttext;
@property (nonatomic, strong) NSString *shangjiaoContenttext;

@property (nonatomic, strong) NSString *vaule_more_all;
@property (nonatomic, strong) NSString *vaule_more_1;
@property (nonatomic, strong) NSString *vaule_more_2;
@property (nonatomic, strong) NSString *vaule_more_3;
@property (nonatomic, strong) NSString *vaule_more_4;
@property (nonatomic, strong) NSString *vaule_more_5;
@property (nonatomic, strong) NSString *vaule_more_6;
@property (nonatomic, strong) NSString *vaule_more_7;
@property (nonatomic, strong) NSString *vaule_more_8;
@property (nonatomic, strong) NSString *vaule_more_9;


- (void)loanPeriodBtnTouch:(PZLXDMModel *)model;
- (void)downPaymentBtnTouch:(PZLXDMModel *)model;


- (void)moreDataInitMore;

+ (NSString *)stringChangeMoneyWithDouble:(double)number;


@end






@interface PZLXDMModel : NSObject

@property (nonatomic, strong) NSString *COMPUTECONFIG_ID;
@property (nonatomic, assign) CGFloat PXSZ01;//配置参数数值1（用于计算）
@property (nonatomic, assign) CGFloat PXSZ02;//:配置参数数值2（用于计算
@property (nonatomic, assign) NSInteger PZLXDM;//1、首付，2、分期利率，3、购置税，4、车船使用税，5、交强险，6、商业保险
@property (nonatomic, strong) NSString *PZLXMC;
@property (nonatomic, strong) NSString *PZMC01;//配置参数名称1（用于显示）
@property (nonatomic, strong) NSString *PZMC02;//配置参数名称2（用于显示）_如果不需要可不读取

@property (nonatomic, assign) BOOL hasChoose;

@end


